GCC=/usr/bin/gcc
SYS_ARCH=linux64

INCLUDE_DIRS= -I./ -I$(SYSTEMC_HOME)/include/
LIB_DIRS=$(SYSTEMC_HOME)/lib-$(SYS_ARCH)
LIBS = -lsystemc -lstdc++ -lm

SOURCES= gen.cpp main.cpp 
HEADS= gen.h
TEST = main

DEPENDENCIES = \
  Makefile \
  $(SOURCES) \
  $(HEADS)

$(TEST): $(DEPENDENCIES)
	@$(GCC) $(SOURCES) $(INCLUDE_DIRS) -L$(LIB_DIRS) -o $@ $(LIBS)

all: $(TEST)
	@./$(TEST)

clean:
	@rm -f $(TEST) *.o *.log *.dat
